﻿namespace Away.IdentityServer.Core.Repositories;

/// <summary>
/// API资源仓储
/// </summary>
public interface IApiResourceRepository
{
    /// <summary>
    /// API资源分页列表
    /// </summary>
    /// <param name="search"></param>
    /// <returns></returns>
    IResult Page(ApiResourceSearch search);

    /// <summary>
    /// 添加、编辑API资源
    /// </summary>
    /// <param name="model"></param>
    void Save(ApiResource model);

    /// <summary>
    /// 删除API资源
    /// </summary>
    /// <param name="ids"></param>
    void Remove(List<int> ids);
}
